﻿@model Best.SmartCms.Portal.Models.NewsInfoModel

<div class="banner3"></div>
<div class="container">
  <div class="wrap">
    <div class="clear">
      <div class="cl30"></div>
      <div class="second_side fl">
        @await Component.InvokeAsync("LeftMenu", Model.ChannelId)
      </div>
      <div class="second_main fr">
        <div class="se_title">
          <h2>@Model.ChannelName</h2>
        </div>
        <div class="cont">
          <ul class="news_list">
            @foreach (var item in Model.PageData.Data)
            {
              <li><span class="fr">@item.CreatedTime.GetValueOrDefault().ToString("yyyy-MM-dd")</span><a target="_blank" href="/news/Preview/@item.Id">@item.Title</a></li>
            }
          </ul>
          @await Component.InvokeAsync("Pagination", Model.PageData)
        </div>
      </div>
    </div>
  </div>
</div>